// 引入工具类   终端扫码
import uploadfile from '@/utils/facility/uploadfile.js'
import uplo from '@/utils/facility/uploadfileend.js'
export function filees(data) { // 上传文件 
	return uploadfile({
		url: '/File/officeFileUpload',
		postdata: data.postdata,
		filePath: data.filePath
	})
}
// 图片打印 终端扫码
export function choosImg(data) { // 
	console.log(data, 'datachooseimg')
	return uploadfile({
		url: '/File/fileUpload',
		postdata: data.postdata, //unicodeid
		filePath: data.filePath
	})
}
export function documents(datas) { //  
	console.log(datas, 'document')
	return uplo({
		url: '/File/sendMessage',
		method: 'post',
		data: {
			postdata: datas
		}
	})
}

// 获取页数

export function applefiles(data) { // 上传文件获取页数等信息 
	console.log('调用')
	return uploadfile({
		url: '/File/officeFileUpload',
		postdata: data.postdata,
		filePath: data.filePath
	})
}
